package com.kwt.learn.map;

import java.util.HashMap;

public class HashMapResize {
    public static void main(String[] args) {
        System.out.println("Aa".hashCode()); // 2112
        System.out.println("BB".hashCode()); // 2112
        System.out.println("ABCDEa123abc".hashCode()); // 165374702
        System.out.println("ABCDFB123abc".hashCode()); // 165374702

        HashMap<String, String> stringStringHashMap = new HashMap<>(1);
        stringStringHashMap.put("Aa", "Aa");
        stringStringHashMap.put("BB", "BB");
        stringStringHashMap.put("ABCDEa123abc", "ABCDEa123abc");
        stringStringHashMap.put("ABCDFB123abc", "ABCDFB123abc");
        for (int i = 0; i < 10; i++) {
            stringStringHashMap.put("key_" + i, "value_" + i);

        }

    }
}
